package com.airlines.crewassignment.service.crewlocation;

import com.airlines.common.Page;
import com.airlines.crewassignment.entity.crewlocation.CrewAbsent;
import java.util.List;

/**
 * @author xianghaini
 * @date 2018/07/04 16:23:40
 * @company xxxx Airlines
 * @description 不在位人员信息
 */
public interface CrewAbsentService {

    /**
     * 添加 （返回主键ID）
     * @param crewAbsent
     * @return
     */
    int insert(CrewAbsent crewAbsent);


    /**
     * 物理删除
     * @param id
     * @return
     */
    int delete(Integer id);


    /**
     * 修改
     * @param crewAbsent
     * @return
     */
    int update(CrewAbsent crewAbsent);


    /**
     * 通过主键查询
     * @param id
     * @return
     */
     CrewAbsent get(Integer id);

    /**
     * 多条件查询
     * @param crewAbsent
     * @return
     */
    List<CrewAbsent> list(CrewAbsent crewAbsent);

    /**
     * 多条件模糊查询
     * @param crewAbsent
     * @param page
     * @return
     */
    Page list(CrewAbsent crewAbsent, Page page);

}
